package com.yzd.learnjava.strings;

import java.util.Scanner;

import com.yzd.learnjava.util.Print;
/*
 * Scanner
 */
public class BetterRead {
	public static void main(String[] args) {
		Scanner stdin = new Scanner(System.in);
		
		Print.print("What is your name?");
		String name = stdin.nextLine();
		Print.print(name);
		
		Print.print("How old are you? What is your favorite double?");
		Print.print("(input : <age> <double>)");
		int age = stdin.nextInt();
		double favorite = stdin.nextDouble();
		Print.print(age);
		Print.print(favorite);
		
		System.out.format("Hi %s.\n", name);
		System.out.format("In five years you will be %d.\n", age + 5);
		System.out.format("My favorite double id %f.", favorite / 2);
		
		
	}
}
